import 'package:flutter_test/flutter_test.dart';
import 'package:untitled33/presentation/bloc/counter_bloc.dart';
import 'package:untitled33/presentation/bloc/counter_event.dart';

void main() {
  group('CounterBloc', () {
    late CounterBloc counterBloc;

    setUp(() {
      counterBloc = CounterBloc();
    });

    test('initial state is 0', () {
      expect(counterBloc.state, 0);
    });

    test('increment increases state by 1', () {
      counterBloc.add(Increment());
      expect(counterBloc.state, 1);
    });
  });
} 